import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/risk'
// 特征
// 特征基准线获取
export const getConfigFeature = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/config/get-score-feature',
    method: 'post',
    data
  })
// 特征保存
export const saveFeature = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/config/score-feature',
    method: 'post',
    data
  })
// 申请评分卡特征项分析
export const getFeature = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/dict/get-features',
    method: 'post',
    data
  })
// 申请评分卡特征项分析
export const getList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/risk-report/score-feature-by-month',
    method: 'post',
    data
  })
